package uk.ac.lkl.lpp.ui;



import java.awt.BorderLayout;

//import javax.swing.JLabel;

import uk.ac.lkl.common.ui.View;
import uk.ac.lkl.common.util.Linkable;
//import uk.ac.lkl.lpp.model.ldo.TeachingMethod;




/**
 * HACKED by Yishay: disabled the HyperlinkButton, links should be read from Messages.properties 
 * of from plan element.
 */
public class HyperlinkedView<O extends Linkable> extends View<O> {
	private static final long serialVersionUID = 1L;

    private View<O> view;
    
    public HyperlinkedView(View<O> view) {
        super(view.getModel());
        this.view = view;
        setLayout(new BorderLayout());//1, 1));

        //HyperlinkButton linkButton = new HyperlinkButton(view.getModel());
        add(view, BorderLayout.CENTER);
        //add(linkButton, BorderLayout.EAST);
    }


    public void updateView() {
        view.updateView();
    }

}
